/*
 * @Description:
 * @version:
 * @Author: 潘骏杰
 * @Date: 2021-11-22 16:23:06
 * @LastEditors: 潘骏杰
 * @LastEditTime: 2021-12-14 15:35:07
 */
import request from '@/utils/request'
import qs from 'qs'
// import CryptoJS from '@/utils/CryptoJS'

export function get(data) {
  return request({
    url: '',
    method: 'get',
    params: data
  })
}

export function post(data) {
  return request({
    url: '',
    method: 'post',
    data: qs.stringify(data)
  })
}

// 预约历史记录
export function postAppointmentQuery(params) {
  return request({
    url: '/api/appointment/query',
    method: 'post',
    data: params
  })
}

// 终端应用向平台取消预约
export function postAppointmentCabcel(params) {
  return request({
    url: '/api/appointment/cancel',
    method: 'post',
    data: params
  })
}

// 根据id查询历史详细信息
export function postAppointmentQueryById(params) {
  return request({
    url: '/api/appointment/queryById',
    method: 'post',
    data: params
  })
}
